<div class="col-md-3">
	<div class="panel panel-default">
		<div class="panel-body">
			<?php 
				if(isset($_SESSION[SESSION_USERID])){ 
					echo 'Anda login sebagai, <b>' . ucwords(strtolower($_SESSION[SESSION_PERSONNAME])) .'</b><br/>'; 
					if($_SESSION[SESSION_USERGROUPID] > 2){
						echo $_SESSION[SESSION_SCHOOLNAME];
					}
				} 
			?>
		</div>
	</div>
	<ul class="nav nav-pills nav-stacked" id="mainmenu">
	<?php 
	switch($_SESSION[SESSION_USERGROUPID]){
		case 1:
	?>
		<li pages="dashboard"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/dashboard.png' class='menu_icon'>Dashboard</a></li>
		<li pages="user"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/user.png' class='menu_icon'>Manajemen Pengguna</a></li>
		<li pages="juara"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/juara.png' class='menu_icon'>Juara</a></li>
		<li pages="level"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/level.png' class='menu_icon'>Level</a></li>
		<li pages="sertifikat"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/sertifikat.png' class='menu_icon'>Sertifikat</a></li>
	<?php
		break;
		case 2:
	?>
		<li pages="dashboard"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/dashboard.png' class='menu_icon'>Dashboard</a></li>
		<li pages="rekap"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/rekap.png' class='menu_icon'>Rekap</a></li>
	<?php
		break;
		case 3:
	?>
		<li pages="dashboard"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/dashboard.png' class='menu_icon'>Dashboard</a></li>
		<li pages="rekap"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/rekap.png' class='menu_icon'>Rekap</a></li>
	<?php
		break;
		case 4:
	?>
		<li pages="dashboard"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/dashboard.png' class='menu_icon'>Dashboard</a></li>
		<li pages="lomba"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/lomba.png' class='menu_icon'>Kompetisi</a></li>
		<li pages="validasi"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/check.png' class='menu_icon'>Validasi</a></li>
		<li pages="rekap"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/rekap.png' class='menu_icon'>Rekap</a></li>
	<?php
		break;
		case 5:
	?>
		<li pages="pengumuman"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/lomba.png' class='menu_icon'>Pengumuman</a></li>
		<li pages="prestasi"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/prestasi.png' class='menu_icon'>Prestasi</a></li>
	<?php
		break;
		case 0:
	?>
		<li pages="dashboard"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/dashboard.png' class='menu_icon'>Dashboard</a></li>
		<li pages="info"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/info.png' class='menu_icon'>Info</a></li>
		<li pages="usergroup"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/usergroup.png' class='menu_icon'>Usergroup</a></li>
		<li pages="user"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/user.png' class='menu_icon'>Manajemen Pengguna</a></li>
		<li pages="juara"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/juara.png' class='menu_icon'>Juara</a></li>
		<li pages="level"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/level.png' class='menu_icon'>Level</a></li>
		<li pages="lomba"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/lomba.png' class='menu_icon'>Kompetisi</a></li>
		<li pages="prestasi"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/prestasi.png' class='menu_icon'>Prestasi</a></li>
		<li pages="validasi"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/check.png' class='menu_icon'>Validasi</a></li>
		<li pages="rekap"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/rekap.png' class='menu_icon'>Rekap</a></li>
	<?php
		break;
		default:
			echo 'error';
		break;
	}
	?>
		<li pages="panduan"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/help.png' class='menu_icon'>Panduan</a></li>
		<li pages="ubahpass"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/lock.png' class='menu_icon'>Ubah Password</a></li>
		<li pages="login/logout"><a href="#" style="background-color:#E6E6E6; color:#000000;">
			<img src='assets/images/icons/logout.png' class='menu_icon'>Logout</a></li>
	</ul>
</div>